package com.zjc615.service;

import com.zjc615.api.vo.NewBeeMallOrderDetailVO;
import com.zjc615.api.vo.NewBeeMallOrderItemVO;
import com.zjc615.api.vo.NewBeeMallShoppingCartItemVO;
import com.zjc615.entity.MallUser;
import com.zjc615.entity.MallUserAddress;
import com.zjc615.entity.NewBeeMallOrder;
import com.zjc615.util.PageQueryUtil;
import com.zjc615.util.PageResult;

import java.util.List;

public interface NewBeeMallOrderService {
    String saveOrder(MallUser loginMallUser, MallUserAddress address, List<NewBeeMallShoppingCartItemVO> itemsForSave);

    String paySuccess(String orderNo, int payType);

    /**
     * 获取订单详情
     *
     * @param orderNo
     * @param userId
     * @return
     */
    NewBeeMallOrderDetailVO getOrderDetailByOrderNo(String orderNo, Long userId);

    /**
     * 我的订单列表
     *
     * @param pageUtil
     * @return
     */
    PageResult getMyOrders(PageQueryUtil pageUtil);
}
